/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const equipmentRouter = {
  path: '/equipment',
  component: Layout,
  hidden: false,
  alwaysShow: false, // will always show the root menu
  redirect: '/equipment/stationDef',
  name: 'Equipment',
  meta: {
    title: 'equipment',
    icon: 'el-icon-camera-solid'
  },
  children: [
    {
      path: 'stationDef',
      component: () => import('@/views/equipment/stationDef'),
      name: 'StationDef',
      alwaysShow: false,
      meta: { title: 'stationDef', roles: ['admin'] }
    },
    {
      path: 'processResultDef',
      component: () => import('@/views/equipment/processResultDef'),
      name: 'ProcessResultDef',
      meta: { title: 'processResultDef', roles: ['admin'] }
    },
    {
      path: 'equipmentAlarmDefs',
      component: () => import('@/views/equipment/equipmentAlarmDefs'),
      name: 'EquipmentAlarmDefs',
      meta: { title: 'equipmentAlarmDefs', roles: ['admin'] }
    },
    {
      path: 'equipmentStatistics',
      component: () => import('@/views/equipment/equipmentStatistics'),
      name: 'EquipmentStatistics',
      meta: { title: 'equipmentStatistics', roles: ['admin'] }
    },
    {
      path: 'stationAlarm',
      component: () => import('@/views/equipment/equipmentAlarm'),
      name: 'StationAlarm',
      meta: { title: 'stationAlarm', roles: ['admin'] }
    },
    {
      path: 'cycleTime',
      component: () => import('@/views/equipment/cycleTime'),
      name: 'CycleTime',
      meta: { title: 'cycleTime', roles: ['admin'] }
    }
  ]
}

export default equipmentRouter
